package com.api.user.service;
import com.api.core.config.AuthUser;
import com.api.user.model.Message;
import com.api.core.service.Service;
import com.api.core.response.Result;
import com.api.user.model.MessageAdd;

import java.util.Map;

/**
 * Created by wanghuiwen on 2021/03/29.
 */
public interface MessageService extends Service<Message> {
   Result list( Map<String, Object> params, String order, Integer page, Integer size);
   Result userList(AuthUser user, Map<String, Object> params, Map<String, Object> orderParams, Integer page, Integer size);
   void add(MessageAdd messageAdd);
   void userUpdate(Long userId,Long messageId,Integer state);

   void delete(Long messageId);
   int noRead(Long messageId);
}
